package com.zm.tools.java9.change;

import com.zm.tools.util.core.test.BaseTest;
import com.zm.tools.validate.ParamValidate;
import org.apache.commons.lang3.ClassUtils;

import java.util.ArrayList;
import java.util.List;

import static java.lang.System.out;

/**
 * @author zoum
 * @create 2018/6/21 13:28
 */
public class UnderscoreCharacter {

    private  String _ = "是是是";


    @SafeVarargs
    UnderscoreCharacter(String ...s){

    }

//    @SafeVarargs
    public static void testSafeVarar1(String ... strings){

    }
//    @SafeVarargs
    public final void testSafeVarar2(String ... strings){

    }

    @SafeVarargs
    public final void testSafeVarar2(List ...list){
        List<Class<?>> classes =  ClassUtils.getAllInterfaces(ParamValidate.class);
        classes.stream().forEach(aClass -> out.println(aClass.getName()));

        List<Class<?>> classes1 =  ClassUtils.getAllSuperclasses(BaseTest.class);
        classes1.stream().forEach(aClass -> out.println(aClass.getName()));
    }

//    @SafeVarargs
    public final int test(Object ...list){
        String[] strings = new String[10];
        testSafeVarar2(strings);
        return 0;
    }


    class Inner<T>{
        private String s;
    }
}
